<!DOCTYPE html>
<html lang="en" xmlns:v-if="http://www.w3.org/1999/xhtml" xmlns:v-elseif="http://www.w3.org/1999/xhtml"
      xmlns:v-else="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue/html.js"></script>
</head>
<!--age是否大于18，等于18，小于18-->
<body>
<div id="nb">
    <span v-if="age>18">欢迎光临</span>
    <span v-else-if="age<18">找啊强去</span>
    <span v-else="age==18">请寡</span>
</div>
<script>
    var vue = new Vue({
        el:"#nb",
        data:{
            age:20
        }
    })
</script>

</body>
</html>